package com.javacore.day17;

public class Test {
public static void main(String[] args) {
	int LENGTH = 4;
	int calc = 1;
	for (int i = 0; i < LENGTH; i++) {
		for (int j = i; j < LENGTH; j++) {
			System.out.print("* ");
		}
		System.out.print(calc + "|");
		for (int j = 0; j < i; j++) {
			calc*=2;
			System.out.print(calc+ "|");
		}
		for (int j = i; j > 0; j--) {
			calc/=2;
			System.out.print(calc+ "!");
		}
		System.out.println();
	}
}
}
